package cn.wolfcode.car.business.service;


import cn.wolfcode.car.base.domain.User;
import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.query.StatementQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;

import java.math.BigDecimal;
import java.util.List;

/**
 * 结算接口
 */
public interface IStatementService {

    /**
     * 分页
     *
     * @param qo
     * @return
     */
    TablePageInfo<Statement> query(StatementQuery qo);


    /**
     * 查单个
     *
     * @param id
     * @return
     */
    Statement get(Long id);


    /**
     * 保存
     *
     * @param statement
     */
    void save(Statement statement);


    /**
     * 更新
     *
     * @param statement
     */
    void update(Statement statement);

    /**
     * 批量删除
     *
     * @param id
     */
    void deleteBatch(Long id);

    /**
     * 查询全部
     *
     * @return
     */
    List<Statement> list();


    void updateAmount(Long statementId, BigDecimal totalAmount, BigDecimal totalQuantity, BigDecimal price);


    void updatePayStatus(Long statementId, Integer status, Long userId);

    Statement getStatementByAppointmentId(Long appointmentId);
}
